.class Les/mf0$a;
.super Ljava/lang/Object;
.source "SaveTask.java"

# interfaces
.implements Les/ff0$b;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/mf0;->a(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/io/File;

.field final synthetic b:Ljava/io/File;

.field final synthetic c:Ljava/lang/String;

.field final synthetic d:Lcom/jecelyin/editor/v2/common/c;

.field final synthetic e:Les/mf0;


# direct methods
.method constructor <init>(Les/mf0;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/mf0$a;->e:Les/mf0;

    iput-object p2, p0, Les/mf0$a;->a:Ljava/io/File;

    iput-object p3, p0, Les/mf0$a;->b:Ljava/io/File;

    iput-object p4, p0, Les/mf0$a;->c:Ljava/lang/String;

    iput-object p5, p0, Les/mf0$a;->d:Lcom/jecelyin/editor/v2/common/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onError(Ljava/lang/Exception;)V
    .locals 2

    .line 1
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Les/mf0;->a(Les/mf0;Z)Z

    .line 2
    invoke-static {p1}, Lcom/jecelyin/common/utils/c;->b(Ljava/lang/Throwable;)I

    .line 3
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->b(Les/mf0;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->b(Les/mf0;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/Context;

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Lcom/jecelyin/common/utils/e;->a(Landroid/content/Context;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public onSuccess()V
    .locals 3

    .line 1
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Les/mf0;->a(Les/mf0;Z)Z

    .line 2
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->a(Les/mf0;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->b(Les/mf0;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->c(Les/mf0;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    goto :goto_2

    .line 3
    :cond_0
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->a(Les/mf0;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/ui/a;

    iget-object v1, p0, Les/mf0$a;->a:Ljava/io/File;

    if-eqz v1, :cond_1

    goto :goto_0

    :cond_1
    iget-object v1, p0, Les/mf0$a;->b:Ljava/io/File;

    :goto_0
    iget-object v2, p0, Les/mf0$a;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/jecelyin/editor/v2/ui/a;->b(Ljava/io/File;Ljava/lang/String;)V

    .line 4
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->d(Les/mf0;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 5
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->b(Les/mf0;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/Context;

    sget v1, Lcom/jecelyin/editor/v2/m;->je_save_success:I

    invoke-static {v0, v1}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    goto :goto_1

    .line 6
    :cond_2
    iget-object v0, p0, Les/mf0$a;->e:Les/mf0;

    invoke-static {v0}, Les/mf0;->c(Les/mf0;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/ui/b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/b;->d()Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->x()V

    .line 7
    :goto_1
    iget-object v0, p0, Les/mf0$a;->d:Lcom/jecelyin/editor/v2/common/c;

    if-eqz v0, :cond_3

    .line 8
    invoke-interface {v0}, Lcom/jecelyin/editor/v2/common/c;->a()V

    :cond_3
    :goto_2
    return-void
.end method
